package com.spring.springboot.impl;

import com.spring.springboot.dao.TestDao;
import com.spring.springboot.entity.Test;
import com.spring.springboot.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TestServiceImpl implements TestService {

    TestDao testDao;
    @Autowired
    public void setTestDao(TestDao testDao){
        this.testDao=testDao;
    }

    @Override
    public List<Test> getTestList(){
        return testDao.getTestList();
    }
}
